import { BasicColumn } from "/@/components/Table";

//列表数据
export const columns: BasicColumn[] = [
  {
    title: '签约商户',
    align: "center",
    dataIndex: 'businessId_dictText'
  },
  {
    title: '服务公司',
    align: "center",
    dataIndex: 'companyId_dictText'
  },
  {
    title: '业务参考号',
    align: "center",
    dataIndex: 'yurRef'
  },
  {
    title: '付方信息',
    align: "center",
    width: 280,
    dataIndex: 'payAccount',
    slots: { customRender: 'paySlot' },
  },
  {
    title: '收方信息',
    align: "center",
    width: 300,
    dataIndex: 'crtAccount',
    slots: { customRender: 'artSlot' },
  },
  {
    title: '退款金额',
    align: "center",
    dataIndex: 'money',
    slots: { customRender: 'moneySlot' },
  },
  {
    title: '退款状态',
    align: "center",
    dataIndex: 'status',
    slots: { customRender: 'statusSlot' },
  },
  {
    title: '银行请求结果',
    align: "center",
    dataIndex: 'reqSts',
    slots: { customRender: 'reqSlot' },
  },
  {
    title: '创建时间',
    align: "center",
    dataIndex: 'createTime'
  },
  {
    title: '提交时间',
    align: "center",
    dataIndex: 'submitTime',
    customRender: ({ text }) => {
      return !text ? "-" : text;
    },
  },
  {
    title: '审核时间',
    align: "center",
    dataIndex: 'checkTime',
    customRender: ({ text }) => {
      return !text ? "-" : text;
    },
  },
  {
    title: '银行处理时间',
    align: "center",
    dataIndex: 'finishTime',
    customRender: ({ text }) => {
      return !text ? "-" : text;
    },
  },
];
